﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Fcdbas.WinUI.Forms;
using Fcdbas.Biz;
using Fcdbas.Core;
using Fcdbas.CustomerOrder;
using DevExpress.XtraGrid.Columns;
using DevExpress.XtraGrid.Views.Grid;

namespace Fcdbas.WinApp
{
    public partial class frmCtableWindow : BaseForm
    {
        private List<customer_order> navList;

        public frmCtableWindow()
        {
            InitializeComponent();
            PropertyDescriptorCollection list = this.MasterdataSourceBinding.GetItemProperties(null);
        }

        private void frmCtableWindow_Load(object sender, EventArgs e)
        {
            navList = Entity<customer_order>.FindAll();
            //dsbDetail.DataSource = navList;
            //ggcList.DataSource = navList;
            //GridView gridView = ggcList.MainView as GridView;
            //foreach (GridColumn col in gridView.Columns)
            //{
            //    if (col.Name.ToUpper() == "COLROWID" || col.Name.ToUpper() == "COLROWVERSION" || col.Name.ToUpper() == "COLRESULT")
            //        col.Visible = false;
            //}
            this.gridView1.OptionsView.ShowGroupPanel = false;
            
        }

        private void repositoryItemTextEdit7_EditValueChanged(object sender, EventArgs e)
        {
            //double dbNum = 0;
            //if (double.TryParse(repositoryItemTextEdit7.valu.ToString(), out dbNum))
            //{
            //    if (Math.Floor(dbNum) - dbNum == 0)
            //        base.EditValue = Convert.ToInt32(dbNum);
            //    else
            //        base.EditValue = dbNum.ToString();
            //}
        }
    }
}
